package com.antoco.operation.bigscreen.model.dto;

import lombok.Data;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;

import com.antoco.operation.bigscreen.commons.annotation.IsSensorExist;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@Data
@ApiModel(value="SensorImgParamDTO")
public class SensorImgParamDTO {

    @NotNull(message = "传感器id不能为空")
    @Digits(integer = 10, fraction = 0, message = "传感器标识必须是数字")
    @IsSensorExist
    @ApiModelProperty(value = "传感器id", example="1")
    private Long sensorId;

    @NotNull(message = "图片地址不能为空")
    @ApiModelProperty(value = "图片地址", example="http://test.com/img1")
    private String imgUrl;
}